package main

import "fmt"

type Cat struct {
	Name  string
	Age   int
	Color string
}

func main() {
	//var cat2 Cat = Cat{"小猫",23,"红色"}
	var cat Cat = Cat{"小猫", 23, "红色"}
	cat.Name = "小猫"
	cat.Age = 23
	cat.Color = "红色"
	fmt.Println("cat=", cat)

	fmt.Println("dizhi=", &cat)
}
